<template>
  <div class="app">
    <router-view/>
    <keep-alive>
      <tab-bar v-if="!route.meta.hideTabBar"/>
    </keep-alive>
  </div>
</template>

<script setup>
// import Tabbar from '@/components/tabbar/tabbar.vue'
import TabBar from '@/components/tabbar/tab-bar.vue'
import {useRoute, useRouter} from "vue-router";
// Router：是路由的全局对象，是一个大对象。包含 添加路由、路由卫士、路由跳转、监听等等
// route：是当前路由对象，包含了当前路由的消息比如：全路径、hash、查询参数，路径，meta元数据
const route = useRoute();
console.log(route)
console.log(useRouter())
</script>

<style scoped>

</style>
